package com.gec.teams.wechat.exception;

import lombok.Data;

/**
 * 功能：自定义异常类
 * 作者：YumTea
 * 日期：2024/6/12 22:43
 */
@Data
public class TeamsException extends RuntimeException{
    private String msg;
    private int code = 500;

    public TeamsException(String msg) {
        super(msg);
        this.msg=msg;
    }
    public TeamsException(String msg, Throwable e) {
        super(msg, e);
        this.msg=msg;
    }
    public TeamsException(String msg, int code){
        super(msg);
        this.msg=msg;
        this.code=code;
    }

    public TeamsException(String msg, int code,Throwable e) {
        super(msg,e);
        this.msg = msg;
        this.code = code;
    }
}
